package com.bjut.vendormgrsys.web.dto.systemPicture;

import com.bjut.vendormgrsys.web.dto.user.UserInfo;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.multipart.MultipartFile;

@Data
@Validated
public class SystemPictureInfo {

    @JsonProperty("id")
    private String id = null;

    @JsonProperty("creatorId")
    private String creatorId = null;

    @JsonProperty("creator")
    private UserInfo creator = null;

    @JsonProperty("name")
    private String name;

    @JsonProperty("author")
    private String author;

    @JsonProperty("fileName")
    private String fileName;

    @JsonProperty("filePath")
    private String filePath;

    @JsonProperty("file")
    @JsonIgnore
    private MultipartFile file = null;

    /**
     * 状态： NEW, PUBLISHED, REVOKE
     */
    @JsonProperty("status")
    private String status = null;

    @JsonProperty("publishedTime")
    private String publishedTime = null;

    /**
     * 创建时间
     */
    @JsonProperty("dateCreated")
    private Long dateCreated;

    /**
     * 最后修改时间
     */
    @JsonProperty("lastUpdated")
    private Long lastUpdated;

    public SystemPictureInfo() {
    }
}
